#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "baterry.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    connect(ui->slider, &QSlider::valueChanged, ui->battery, &Baterry::setValue);
    ui->slider->setValue(30);
}

MainWindow::~MainWindow()
{
    delete ui;
}
